<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="header" style="position:relative;" id="header">
	<div class="logo"><a href="home"><img src="Content/images/MasterPage/logo.png" alt="logo"></a></div>
	<div class="logo-text">book center</div>
	<div class="search">
		<div class="input-append" style="height:40px;">
		<form action="TimKiemThuong.do?trang=1&slbooktt=${requestScope.soBookTrenTrang }&kieuSort=1&save=false" method="post">
			  <select class="span2" name="headertopic">
			  <option value="-1">Tất cả</option>	
				 <c:forEach var="topic" items="${requestScope.lMenu1 }">
									<option value="${topic.topicId }"><c:out value="${topic.topicName}"></c:out></option>
				</c:forEach>		
			</select>	
		    <input class="span3" id="appendedDropdownButton" type="text" name="headerinput" style="max-width:240px;">
		    <div class="btn-group">
		    <button class="btn dropdown-toggle">
		    Search
		    </button>
		    </div>
		</form>		  
    	</div>	
	</div>
	<div class="advance-search"><a href="TimKiemNangCao.do?BatDau=true" style="color:white">Tìm kiếm nâng cao  </a></div>
	
	<div class="user-logo">
		<c:if test="${sessionScope.user==null}">
			<ul class="inline pull-right">
				<li><a href="DangNhap.do">Đăng nhập</a></li>
				<li><a href="DangKi.do">Đăng kí</a></li>
				<li><a href="Lienhe.do">Liên hệ</a></li>
				<li><a href="Huongdan.do">Hướng dẫn</a></li>
			</ul>
		</c:if>
		<c:if test="${sessionScope.user!=null}">
			<ul class="inline pull-right">
				<li><a href="ThongTinChungTaiKhoan.do">Chào, <i class="icon-user icon-white"></i> <c:out value="${user.userId}"></c:out></a></li>
				<li><a href="Lienhe.do">Liên hệ</a></li>
				<li><a href="Huongdan.do">Hướng dẫn</a></li>
				<li><a href="DangXuat.do">Đăng xuất</a></li>
			</ul>
		</c:if>
	</div>
</div>

    